package com.cwf.system.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cwf.system.entity.Permission;
import com.cwf.system.vo.PermissionTreeVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * (Permission)表数据库访问层
 *
 * @author makejava
 * @since 2023-02-15 15:49:36
 */
@Mapper
public interface PermissionDao extends BaseMapper<Permission> {



    PermissionTreeVO byIdGetChildren(Long id);

    PermissionTreeVO byParentIdGetChildren(Long id);


    List<Permission> getAllPermission();
}

